// components/unreceive/unreceive.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    orders: [
        {
          id: 1,
          shopName: '优品零食',
          status: '卖家已发货',
          img: 'https://gw.alicdn.com/imgextra/O1CN01qZ6OfD2LY25trPYNJ_!!3937219703-0-C2M.jpg_.webp',
          title: '盼盼铜锣烧红豆味营养早餐夹心面包糕点心休闲零食品小吃夜宵充饥',
          sku: '规格:【尝鲜4包】盼盼铜锣烧4包',
          price: 5.35
        },
        {
          id: 2,
          shopName: '零食小店',
          status: '卖家已发货',
          img: 'https://gw.alicdn.com/imgextra/O1CN01qZ6OfD2LY25trPYNJ_!!3937219703-0-C2M.jpg_.webp',
          title: '盼盼铜锣烧红豆味营养早餐夹心面包糕点心休闲零食品小吃夜宵充饥',
          sku: '规格:【尝鲜4包】盼盼铜锣烧4包',
          price: 5.35
        }
      ]

  },

  /**
   * 组件的方法列表
   */
  methods: {
   
 /* 按钮事件示例 */
 more() {
    wx.showActionSheet({
      itemList: ['申请售后', '联系卖家', '复制订单号'],
    });
  },
  extend() {
    wx.showToast({ title: '已延长收货', icon: 'none' });
  },
  logistics() {
    wx.showToast({ title: '无需物流，到店自取', icon: 'none' });
  },
  confirm() {
    wx.showModal({
      title: '确认收货',
      content: '请确认已收到货',
      success: res => res.confirm && wx.showToast({ title: '收货成功' })
    });
  }

  }
})